<?php
/**
 * shortcode.php
 * 
 * this file defines and activates all the themes shortcodes
 *
 * @author Eric Akkerman
 */

/**
 * Shortcodes
 * [foobar]
 */
function absurl_shortcode_func( $atts ){
    return ABSURL;
}
add_shortcode( 'absurl', 'absurl_shortcode_func' );

/**
 * Shortcodes
 * [echoslide]
 */
function echoslide_shortcode_shortcode( $atts ){
	add_action('wp_enqueue_scripts', 'echotheme_slideshow_links');
	ob_start();
	getTemplate('content', 'slideshow');
	return ob_get_clean();
}
add_shortcode( 'echoslide', 'echoslide_shortcode_func' );

/**
 * Shortcode
 * [flexslider]
 */
function echotheme_flexslider_shortcode($atts)
{
	get_template_part('flexslider', 'gallery');
}
add_shortcode('flexslider', 'echotheme_flexslider_shortcode');
?>